import alova from '@/utils/alova'

// 角色列表
export const roleList = (data) => {
  return alova.Post('/sys/role/lists', data)
}

// 编辑
export const roleInfo = (id) => {
  return alova.Get(`/sys/role/info/${id}`)
}

// 菜单树
export const menuNav = () => {
  return alova.Get('/sys/menu/nav')
}

// 新增
export const roleSave = (data) => {
  return alova.Post('/sys/role/save', data)
}

// 修改
export const roleUpdate = (data) => {
  return alova.Post('/sys/role/update', data)
}

// 删除
export const roleDelete = (data) => {
  return alova.Post('/sys/role/delete', data)
}
